import request from '@/utils/request.js'
const base_url = 'site/user/patient'
export default{
    findAllPatient(){
        return request({
            url:`${base_url}/auth/findAllPatient`,
            method:'get'
        })
    },
    findPatient(id){
        return request({
            url:`${base_url}/auth/findPatient/${id}`,
            method:'get'
        })
    },
    updatePatient(patient){
        return request({
            url:`${base_url}/auth/updatePatient`,
            method:'put',
            data:patient
        })
    },
    addPatient(patient){
        return request({
            url:`${base_url}/auth/addPatient`,
            method:'post',
            data:patient
        })
    },
    deletePatient(id){
        return request({
            url:`${base_url}/auth/deletePatient/${id}`,
            method:'delete'
        })
    }
    
}